{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e22.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 14:10:23
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "in out.dta"
{txt}
{com}. 
. sem (d <-  t  wl p)(p <-  t  wl)  
{res}{txt}(3 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-366.34655}  
Iteration 1:{space 3}log likelihood = {res:-366.34655}  

Structural equation model{col 49}Number of obs{col 67}= {res}       229
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-366.34655

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3730236{col 26}{space 2} .0568328{col 37}{space 1}    6.56{col 46}{space 3}0.000{col 54}{space 4} .2616334{col 67}{space 3} .4844138
{txt}{space 11}t {c |}{col 14}{res}{space 2}   .01988{col 26}{space 2} .0324091{col 37}{space 1}    0.61{col 46}{space 3}0.540{col 54}{space 4}-.0436406{col 67}{space 3} .0834007
{txt}{space 10}wl {c |}{col 14}{res}{space 2}   .30177{col 26}{space 2} .0370953{col 37}{space 1}    8.13{col 46}{space 3}0.000{col 54}{space 4} .2290645{col 67}{space 3} .3744755
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3013362{col 26}{space 2} .0341932{col 37}{space 1}    8.81{col 46}{space 3}0.000{col 54}{space 4} .2343189{col 67}{space 3} .3683536
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0659073{col 26}{space 2} .0374309{col 37}{space 1}    1.76{col 46}{space 3}0.078{col 54}{space 4}-.0074559{col 67}{space 3} .1392705
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3246253{col 26}{space 2} .0374195{col 37}{space 1}    8.68{col 46}{space 3}0.000{col 54}{space 4} .2512845{col 67}{space 3} .3979661
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3079385{col 26}{space 2} .0341555{col 37}{space 1}    9.02{col 46}{space 3}0.000{col 54}{space 4}  .240995{col 67}{space 3}  .374882
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2}  .058725{col 26}{space 2} .0054881{col 54}{space 4} .0488962{col 67}{space 3} .0705296
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0793945{col 26}{space 2} .0074197{col 54}{space 4} .0661062{col 67}{space 3} .0953539
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       229{col 27}        .{col 38}-366.3466{col 49}     9{col 58} 750.6931{col 69} 781.5966
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3730236{col 26}{space 2} .0568328{col 37}{space 1}    6.56{col 46}{space 3}0.000{col 54}{space 4} .2616334{col 67}{space 3} .4844138
{txt}{space 11}t {c |}{col 14}{res}{space 2}   .01988{col 26}{space 2} .0324091{col 37}{space 1}    0.61{col 46}{space 3}0.540{col 54}{space 4}-.0436406{col 67}{space 3} .0834007
{txt}{space 10}wl {c |}{col 14}{res}{space 2}   .30177{col 26}{space 2} .0370953{col 37}{space 1}    8.13{col 46}{space 3}0.000{col 54}{space 4} .2290645{col 67}{space 3} .3744755
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0659073{col 26}{space 2} .0374309{col 37}{space 1}    1.76{col 46}{space 3}0.078{col 54}{space 4}-.0074559{col 67}{space 3} .1392705
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3246253{col 26}{space 2} .0374195{col 37}{space 1}    8.68{col 46}{space 3}0.000{col 54}{space 4} .2512845{col 67}{space 3} .3979661
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2}  .024585{col 26}{space 2} .0144563{col 37}{space 1}    1.70{col 46}{space 3}0.089{col 54}{space 4}-.0037488{col 67}{space 3} .0529188
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1210929{col 26}{space 2} .0231347{col 37}{space 1}    5.23{col 46}{space 3}0.000{col 54}{space 4} .0757497{col 67}{space 3}  .166436
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3730236{col 26}{space 2} .0568328{col 37}{space 1}    6.56{col 46}{space 3}0.000{col 54}{space 4} .2616334{col 67}{space 3} .4844138
{txt}{space 11}t {c |}{col 14}{res}{space 2}  .044465{col 26}{space 2} .0350895{col 37}{space 1}    1.27{col 46}{space 3}0.205{col 54}{space 4}-.0243091{col 67}{space 3} .1132392
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .4228629{col 26}{space 2} .0350788{col 37}{space 1}   12.05{col 46}{space 3}0.000{col 54}{space 4} .3541098{col 67}{space 3} .4916161
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0659073{col 26}{space 2} .0374309{col 37}{space 1}    1.76{col 46}{space 3}0.078{col 54}{space 4}-.0074559{col 67}{space 3} .1392705
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3246253{col 26}{space 2} .0374195{col 37}{space 1}    8.68{col 46}{space 3}0.000{col 54}{space 4} .2512845{col 67}{space 3} .3979661
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       229
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .1210929{col 26}{space 2} .0253786{col 37}{space 1}    4.77{col 46}{space 3}0.000{col 54}{space 4} .0713517{col 67}{space 3}  .170834
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .4228629{col 26}{space 2} .0344462{col 37}{space 1}   12.28{col 46}{space 3}0.000{col 54}{space 4} .3553497{col 67}{space 3} .4903761
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       229
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .12109289{col 27}{space 2} .0002604{col 38}{space 2} .02537861{col 51}{space 2}  .074903{col 63}{space 1} .1723918{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0755731{col 63}{space 1} .1725154{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}  .4228629{col 27}{space 2}-.0011594{col 38}{space 2} .03444616{col 51}{space 2} .3499085{col 63}{space 1} .4885533{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .3535545{col 63}{space 1} .4901056{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )   
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       229
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2}  .024585{col 26}{space 2} .0141654{col 37}{space 1}    1.74{col 46}{space 3}0.083{col 54}{space 4}-.0031787{col 67}{space 3} .0523487
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2}  .044465{col 26}{space 2} .0357541{col 37}{space 1}    1.24{col 46}{space 3}0.214{col 54}{space 4}-.0256117{col 67}{space 3} .1145417
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       229
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .02458499{col 27}{space 2}-.0000178{col 38}{space 2}  .0141654{col 51}{space 2}-.0020369{col 63}{space 1} .0534454{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0003079{col 63}{space 1} .0565108{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .04446501{col 27}{space 2}-.0007023{col 38}{space 2} .03575408{col 51}{space 2}-.0286199{col 63}{space 1} .1116745{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0267725{col 63}{space 1} .1122802{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       212
                                                {txt}F(3, 208)         =  {res}     5.63
                                                {txt}Prob > F          = {res}    0.0010
                                                {txt}R-squared         = {res}    0.0613
                                                {txt}Root MSE          =    {res} .48828

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2} .0326369{col 26}{space 2} .0341915{col 37}{space 1}    0.95{col 46}{space 3}0.341{col 54}{space 4}-.0347694{col 67}{space 3} .1000433
{txt}{space 4}interest {c |}{col 14}{res}{space 2} -.004398{col 26}{space 2} .1091629{col 37}{space 1}   -0.04{col 46}{space 3}0.968{col 54}{space 4}-.2196055{col 67}{space 3} .2108095
{txt}{space 4}ideology {c |}{col 14}{res}{space 2} .4531754{col 26}{space 2} .1164547{col 37}{space 1}    3.89{col 46}{space 3}0.000{col 54}{space 4} .2235925{col 67}{space 3} .6827583
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2490852{col 26}{space 2} .0863683{col 37}{space 1}    2.88{col 46}{space 3}0.004{col 54}{space 4} .0788157{col 67}{space 3} .4193547
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e22.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 14:12:09
{txt}{.-}
{smcl}
{txt}{sf}{ul off}